package practice2;

import java.io.Serializable;
import java.util.Date;

public class Bid implements Serializable{

    private String id = null;
	private Item item;
	private Date created = new Date();
    private boolean successful = false;

    /**
	 * No-arg constructor for JavaBean tools
	 */
	public Bid() {}

	/**
	 * Full constructor
	 *
	 * @param amount
	 * @param item
	 * @param bidder
	 */

	public Bid(Item item) {
		this.item = item;
	}


	public String getId() { return id; }
	public Item getItem() { return item; }
	public Date getCreated() { return created; }
    public boolean isSuccessful() { return successful; }
    public void setSuccessful(boolean successful) { this.successful = successful; }
}